home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-23 | 1.2 KB | 42 lines | [TEXT/PJMM] |
- { TransSkel demonstration: Minimal application}
-
- {This program does nothing but put up an Apple menu}
- { with desk accessories , and a File menu }
- { with a Quit item . The user can run DA 's until Quit is selected or command-Q is typed.}
-
- {The project should include this file , TransSkel.p}
- { ( or a library built from TransSkel.p ) , Runtime.lib and Interface.lib .}
-
- {27 June 1986 Paul DuBois}
- { 11 January 1987 Owen Hartnett }
- {Ωhm Software Co. 163 Richard Drive, Tiverton, RI 02878 }
- {30 December 1987 OH changes for version 2.00 }
-
- program MiniSkel;
-
-
- uses
- {$IFC UNDEFINED THINK_PASCAL}
- Memtypes, Quickdraw, OSIntf, ToolIntf, PackIntf,
- {$ENDC}
- TransSkel;
-
- var
- m: MenuHandle;
- dummy: Boolean;
-
- procedure DoFileMenu (item: integer); { ignored - there's only quit }
-
- begin
- SkelWhoa; { Tell SkelMain to quit }
- end;
-
- begin
- SkelInit(6, nil); { Initialize }
- SkelApple('', nil); { Handle Desk Accessories }
- m := NewMenu(2, 'File'); { Create Menu }
- AppendMenu(m, 'Quit/Q');
- dummy := SkelMenu(m, @DoFileMenu, nil, true); { Tell Transkel to handle it }
- SkelMain; { loop til quit selected }
- SkelClobber; { clean up }
- end.